<?php
/**
 * 更新订单(依据海外仓状态自动回写)（海外仓,回写发货状态以及谷仓物流信息）
 */

namespace App\Console\Commands\Rakuten\GuCang;


use App\Logic\Plat\Rakuten\Overseas\GuCang\Order\OverseasOrder;
use App\Models\Basics\SysPlat;
use App\Models\CustomerDelivery\CustomerDelivery;
use App\Models\CustomerDelivery\CustomerDeliveryDetail;
use Illuminate\Console\Command;

class SyncUpdateOrderInfo extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'gucang:update-order-info {delivery_order_no=null} {start_time=null} {end_time=null}';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        dd('stop!');

        $deliveryOrderNo = $this->argument('delivery_order_no');
        $startTime = $this->argument('start_time');
        $endTime = $this->argument('end_time');

        OverseasOrder::updateOrderInfo($deliveryOrderNo,$startTime,$endTime);
        $this->info('finish!');
    }

}
